#include "eighdr.h"

enum Scheine {Prog1 = 1<<0,Prog2 = 1<<1, Prog3 = 1<<2, ADS = 1<<3, Theo = 1<<4};
void printschein(int s){
  if(s & Prog1) printf("Prog1 ");
  if(s & Prog2) printf("Prog2 ");
  if(s & Prog3) printf("Prog3 ");
  if(s & ADS)   printf("ADS ");
  if(s & Theo)  printf("Theo ");
  printf("\n");
}
int main(void){
  enum Scheine susi = Prog1|Prog2|Theo;
  int rudi = Prog1|Prog3|ADS;
  printschein(susi);
  printschein(rudi);
  printschein(susi | rudi);
  printschein(susi & rudi);
  printschein(~susi);
  return 0;
}
